//
//  UIViewController+ModalPresentationStyle.m
//

#import "UIViewController+ModalPresentationStyle.h"

@implementation UIViewController (ModalPresentationStyle)


- (UIModalPresentationStyle)modalPresentationStyle{
 
    return UIModalPresentationOverFullScreen;
    
}

- (id)jumpToPopControlClass:(NSString *)strControl{
    for (int i = 0; i < self.navigationController.viewControllers.count; i++) {
        UIViewController *vc = self.navigationController.viewControllers[i];
        if ([vc isKindOfClass:[NSClassFromString(strControl) class]]) {
            [self.navigationController popToViewController:vc animated:true];
            return vc;
        }
    }
    return nil;
}


@end
